package org.oradoc.structures.dao;

import org.apache.commons.lang.BooleanUtils;

public class ColumnTO {

    public String name;
    public String type;
    public boolean optional;
    public String defval = "";
    public String comment;

    public String getName() {
        return this.name;
    }

    public String getType() {
        return this.type;
    }

    public String getOptionalAsString() {
        return BooleanUtils.toString(this.optional, "Y", "F");
    }

    public boolean isOptional() {
        return this.optional;
    }

    public String getDefault() {
        return this.defval;
    }

    public String getComment() {
        return this.comment;
    }

}